-- GENERATED SPELL FOR [Bayne] --


function spell0_10356(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10356', 15000, 1)
end

function spell1_10356(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10356', 8000, 1)
end

function Sorts_10356(pUnit, Event)
local choix_sorts_10356 = math.random(0, 1)
if choix_sorts_10356 == 0 then
pUnit:RegisterEvent('spell0_10356', 1, 1)
end
if choix_sorts_10356 == 1 then
pUnit:RegisterEvent('spell1_10356', 1, 1)
end
end

function mob10356_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10356', math.random(1500, 3000), 1)
end

function mob10356_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10356_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10356_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10356, 1, 'mob10356_Action')
RegisterUnitEvent(10356, 2, 'mob10356_Leave')
RegisterUnitEvent(10356, 3, 'mob10356_Kill')
RegisterUnitEvent(10356, 4, 'mob10356_Die')
